import request from '@/utils/request'

// 查询考点管理列表
export function listExampoint(query) {
  return request({
    url: '/grant/exampoint/list',
    method: 'get',
    params: query
  })
}

// 查询考点管理详细
export function getExampoint(id) {
  return request({
    url: '/grant/exampoint/' + id,
    method: 'get'
  })
}

// 新增考点管理
export function addExampoint(data) {
  return request({
    url: '/grant/exampoint',
    method: 'post',
    data: data
  })
}

// 修改考点管理
export function updateExampoint(data) {
  return request({
    url: '/grant/exampoint',
    method: 'put',
    data: data
  })
}

// 删除考点管理
export function delExampoint(id) {
  return request({
    url: '/grant/exampoint/' + id,
    method: 'delete'
  })
}

// 导出考点管理
export function exportExampoint(query) {
  return request({
    url: '/grant/exampoint/export',
    method: 'get',
    params: query
  })
}

// 查询考点管理列表(不分页)
export function getExamPointlist(query) {
  return request({
    url: '/grant/exampoint/getExamPointlist',
    method: 'get',
    params: query
  })
}
/**
 * 根据选择的科类关联出考点选择列表
 * @param data
 * @returns {*}
 */
export function getExamponitListByFamiliesId(data){
  return request({
    url: '/grant/exampoint/getExamponitListByFamiliesId',
    method: 'post',
    data: data
  })
}
